home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / usr / share / alsa / pcm / side.conf < prev    next >
Text File  |  2008-10-07  |  744b  |  59 lines

  1. #
  2. # Hardware output from side speakers
  3. #
  4.  
  5. pcm.!side {
  6.     @args [ CARD DEV ]
  7.     @args.CARD {
  8.         type string
  9.         default {
  10.             @func getenv
  11.             vars [
  12.                 ALSA_SIDE_CARD
  13.                 ALSA_PCM_CARD
  14.                 ALSA_CARD
  15.             ]
  16.             default {
  17.                 @func refer
  18.                 name defaults.pcm.side.card
  19.             }
  20.         }
  21.     }
  22.     @args.DEV {
  23.         type integer
  24.         default {
  25.             @func igetenv
  26.             vars [
  27.                 ALSA_SIDE_DEVICE
  28.             ]
  29.             default {
  30.                 @func refer
  31.                 name defaults.pcm.side.device
  32.             }
  33.         }
  34.     }
  35.     type empty
  36.     slave.pcm {
  37.         @func refer
  38.         name {
  39.             @func concat
  40.             strings [
  41.                 "cards."
  42.                 {
  43.                     @func card_driver
  44.                     card $CARD
  45.                 }
  46.                 ".pcm.side." $DEV ":CARD=" $CARD
  47.             ]
  48.         }
  49.     }
  50.     hint {
  51.         show {
  52.             @func refer
  53.             name defaults.namehint.basic
  54.         }
  55.         description "Side speakers"
  56.         device $DEV
  57.     }
  58. }
  59.